<!DOCTYPE html>
<link rel=match href=inline_block_margin_auto_ref.html>
<style>
html, body {
    margin: 0;
}
#a {
    display: block;
    background: lime;
    text-align: center;
    width: 96px;
}
#b {
    background: gold;
    display: inline-block;
    margin: 0 auto;
    padding: 16px 16px;
}
</style>
<div id=a><div id=b></div>

